import request from '@/utils/request'

// 查询产品工艺线路列表
export function listCircuit(query) {
  return request({
    url: '/production/circuit/list',
    method: 'get',
    params: query
  })
}

// 查询产品工艺线路详细
export function getCircuit(circuitId) {
  return request({
    url: '/production/circuit/' + circuitId,
    method: 'get'
  })
}

// 新增产品工艺线路
export function addCircuit(data) {
  return request({
    url: '/production/circuit',
    method: 'post',
    data: data
  })
}

// 修改产品工艺线路
export function updateCircuit(data) {
  return request({
    url: '/production/circuit',
    method: 'put',
    data: data
  })
}

// 删除产品工艺线路
export function delCircuit(circuitId) {
  return request({
    url: '/production/circuit/' + circuitId,
    method: 'delete'
  })
}
